import request from 'utils/request'
/**
 *登录认证
 * @param {*} data mobile,code,agree
 * @returns
 */
export const login = (data) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'POST',
    data,
  })
}

// 获取个人资料
export const getUserInfo = () => {
  return request({
    url: '/v1_0/user/profile',
    method: 'GET',
  })
}
